#ifndef RESSOURCE_MANAGER_H_
#define RESSOURCE_MANAGER_H_

#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_image.h>
#include <map>

namespace JDL
{
  class RessourceManager
  {
  private:
    RessourceManager();
    ~RessourceManager();
    std::map<std::string, Mix_Music*>	_musics;
    std::map<std::string, Mix_Chunk*>	_sounds;
    std::map<std::string, SDL_Surface*>	_images;
    static RessourceManager		*_manager;
  public:
    void		AddImage(const std::string str);
    void		AddMusic(const std::string str);
    void		AddSound(const std::string str);
    SDL_Surface	*GetImage(const std::string str);
    Mix_Music	*GetMusic(const std::string str);
    Mix_Chunk	*GetSound(const std::string str);
    static RessourceManager	*GetInstance();
  };
}

#endif
